-- GENERATED SPELL FOR [Elder Darkshore Thresher] --


function spell0_2187(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2187', 20000, 1)
end

function Sorts_2187(pUnit, Event)
local choix_sorts_2187 = math.random(0, 0)
if choix_sorts_2187 == 0 then
pUnit:RegisterEvent('spell0_2187', 1, 1)
end
end

function mob2187_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2187', math.random(1500, 3000), 1)
end

function mob2187_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2187_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2187_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2187, 1, 'mob2187_Action')
RegisterUnitEvent(2187, 2, 'mob2187_Leave')
RegisterUnitEvent(2187, 3, 'mob2187_Kill')
RegisterUnitEvent(2187, 4, 'mob2187_Die')
